package com.company.finance.ddd.interfaces;

import com.company.finance.ddd.domain.core.voucher.VoucherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 *
 * @author wanglei
 * @version $$Id: VoucherApi, v 0.1 2021/2/19 14:21 wanglei Exp $$
 */
@RestController
@RequestMapping("voucher")
public class VoucherApi {

    @Autowired
    private VoucherService voucherService;

    @GetMapping("create/{billId}")
    public void createVoucher(@PathVariable Long billId) {
        voucherService.createVoucher(billId);
    }

}
